package com.dongjiantong.biz.serviceImpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongjiantong.biz.mapper.ReportHandleResumesMapper;
import com.dongjiantong.biz.model.ReportHandleResumes;
import com.dongjiantong.biz.service.ReportHandleResumesService;
import com.dongjiantong.mybatis.ServiceMybatis;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ThinkPad on 2017/12/19.
 */
@Slf4j
@Service(version = "1.0.0")
public class ReportHandleResumesServiceImpl extends ServiceMybatis<ReportHandleResumes> implements ReportHandleResumesService {
    @Resource
    private ReportHandleResumesMapper reportHandleResumesMapper;

    /**
     * 创建单条履历
     *
     * @param reportHandleResumes
     * @return
     */
    @Override
    public Long create(ReportHandleResumes reportHandleResumes) {

        reportHandleResumesMapper.insert(reportHandleResumes);
        return reportHandleResumes.getId();

    }

    /**
     * 创建多条履历
     *
     * @param reportHandleResumesList
     * @return
     */
    @Override
    public int createSome(List<ReportHandleResumes> reportHandleResumesList) {

        return reportHandleResumesMapper.insertList(reportHandleResumesList);
    }


}
